package com.autotest.nore.dto;

import lombok.Data;
import java.util.List;

@Data
public class BodyContent {
    private List<?> file;       // 兼容JSON中的空数组
    private String type; // json/form-data/form/raw
    private List<FormField> form; // 用于form-data和x-www-form-urlencoded
    private String json;   // 用于application/json
    private String raw;    // 用于text/plain等

    @Data
    public static class FormField {
        private String name;
        private String value;
        private String type; // 避免与父类type冲突
        private boolean required;
        private String remark;
    }
}